package com.tensquare.sms.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author: fxx
 * @Date: 2021/1/13 14:54
 */
@Component
@RabbitListener(queues = "sms") //消费哪个队列
public class SmsListener {

    @RabbitHandler
    public void executeSms(Map<String, String> map){
        //阿里云短信发送服务
    }
}
